<template>
  <view class="privacy_box">
    <view v-html="data"></view>
  </view>
</template>

<!-- 隐私政策 -->
<script lang="ts" setup>
import { ReqSelectSysConfigByCategory } from '@/api/sys_config';
import { SysConfigTypeEnum } from '@/config/enum/enum';
import { onLoad } from '@dcloudio/uni-app';
import { ref } from 'vue'
//内容
const data = ref<string>()

//页面加载
onLoad(() => {
  ReqSelectSysConfigByCategory({ category: SysConfigTypeEnum.PRIVACY }).then(
    (res) => {
      if (res.code == 200 && res.data) {
        data.value = res.data
      }
    }
  )
})
</script>

<style scoped lang="scss">
.privacy_box {
  padding: 20rpx;
  width: calc(100% - 40rpx);
}
</style>
